package com.jiaai.cloud.wx.entity;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-28
 */
@TableName("t_emp")
public class TEmp extends Model<TEmp> {

    private static final long serialVersionUID = 1L;

    /**
     * 员工编号
     */
	@TableId(value="empid", type= IdType.INPUT)
	private String empid;
    /**
     * 员工昵称
     */
	private String nickname;
    /**
     * 员工头像
     */
	private String avater;
    /**
     * 员工性别
     */
	private Integer gender;
    /**
     * 员工的微信openID
     */
	private String openID;
    /**
     * 员工的激活状态 0:未激活 1:已激活
     */
	private Integer status;
    /**
     * 员工的电子邮箱
     */
	private String email;
    /**
     * 员工所在城市
     */
	private String city;
    /**
     * 员工注册时间
     */
	@JSONField(format = "yyyy-MM-dd")
	private Date regdate;
    /**
     * 员工所在组的id
     */

	private Integer groupid;


	public String getEmpid() {
		return empid;
	}

	public void setEmpid(String empid) {
		this.empid = empid;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getAvater() {
		return avater;
	}

	public void setAvater(String avater) {
		this.avater = avater;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public String getOpenID() {
		return openID;
	}

	public void setOpenID(String openID) {
		this.openID = openID;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public Date getRegdate() {
		return regdate;
	}

	public void setRegdate(Date regdate) {
		this.regdate = regdate;
	}

	public Integer getGroupid() {
		return groupid;
	}

	public void setGroupid(Integer groupid) {
		this.groupid = groupid;
	}

	@Override
	protected Serializable pkVal() {
		return this.empid;
	}

	public TGroup gettGroup() {
		return tGroup;
	}

	public void settGroup(TGroup tGroup) {
		this.tGroup = tGroup;
	}

	/**
	 * emp所在分组
	 */
	@TableField(exist = false)
	private TGroup tGroup;

}
